package com.flyinbed.coolweather.utils;

import android.os.Handler;

/**
 * Created by lwq on 2016/7/20.
 */
public class ThreadUtils {
    public static void runInThread(Runnable r) {
        new Thread(r).start();
    }

    private static Handler handler=new Handler();
    public static void runUIThread(Runnable r) {
        handler.post(r);//new Message  sendMessage-->handleMessage(); r.run();
    }
}
